#set($title = "$display.alt($!domain.domain,'myForum')")
#parse("/home/parseHeader.html")
#parse("/topic/form.html")
#parse("/topic/_nav.html")

<div class="mainbox viewtopic">
    <span class="headactions"><a class="notabs" href='/forum/members/addFavor?url=/topics/$encrypt.encrypt("$topicInfo.topicid")&boardName=${topicInfo.boardName}&title=$!topicInfo.title'>收藏</a></span>
    <h1>$!topicInfo.title</h1>
    <table id="rid0" cellspacing="0" cellpadding="0">
        <tbody>
            <tr>
                <td class="postauthor" rowspan="3">
                    <cite>
                       #if($!topicInfo.ishidepost=="F") <a href="/members/$!topicInfo.userid" target="_blank">$!topicInfo.nickname</a>#else匿名发帖#end
                    </cite>
                    <div class="avatar">
                        #if($!topicInfo.ishidepost=="F")#avatar("$!topicInfo.user.avatar") #else #avatar("sample/unknown.gif") #end
                    </div>
                    <p>
                        <em>$!group.groupName("$!topicInfo.user.groupid")</em>&nbsp;#rank("$!topicInfo.user.groupid")
                    </p>
                    <dl class="profile">
                        <dt>
                            帖子&nbsp;
                        </dt>
                        <dd>
                            $!topicInfo.user.posts&nbsp;
                        </dd>
                        <dt>
                            积分&nbsp;
                        </dt>
                        <dd>
                           $!topicInfo.user.credits&nbsp;
                        </dd>
                    </dl>
                    <ul>
                    	  #if($!topicInfo.ishidepost=="F") 
                        <li class="friend">
                            <a href="/forum/members/addFriend?friendId=$!topicInfo.user.userid" target="_blank">加为好友</a>
                        </li>
                        <li class="sms">
                            <a href="/forum/members/smsList/smscompose?userId=$!topicInfo.user.userid" target="_blank">发短消息</a>
                        </li>
						#end
                    </ul>
                </td>
                <td class="postdetail">
                    <div class="postinfo">
                        <strong title="ID:0">0
                            <sup>
                                #
                            </sup>
                        </strong>
                        发表于 $date.format("yyyy-MM-dd HH:mm:ss",$topicInfo.createtime)&nbsp;
                        IP: $!topicInfo.remoteip  &nbsp;
                    </div>
                    <div class="postcontent">
                        <h2>$!topicInfo.title</h2>
                        <div id="content_0" class="contentmsg">
                            $!topicInfo.content
							#if($!topicInfo.attachInfos.size()!=0)
							<div class="box attachlist"><br>
                            <p class="attach">附件</p>
                              #foreach($attach in $!topicInfo.attachInfos)
							  #parse("/topic/attach.html")
							 #end
                         </div>
						 #end
                        </div>
                    </div>
                </td>
            </tr>
			<tr>
				<td class="postfooter">
					 <!-- JiaThis Button BEGIN -->
					   <div class="jiathis_style_32x32" style="float:right;">
						<a class="jiathis_button_qzone"></a>
						<a class="jiathis_button_tsina"></a>
						<a class="jiathis_button_tqq"></a>
						<a class="jiathis_button_renren"></a>
						<a class="jiathis_button_kaixin001"></a>
						<a class="jiathis_button_tianya"></a>
						<a class="jiathis_button_tieba"></a>
						<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank">更多</a>
						<a class="jiathis_counter_style"></a>
					   </div>
                       <!-- JiaThis Button END -->
				</td>
			</tr>
            <tr>
                <td class="postfooter">
                    <div class="postactions">
                        <p>
                           #if($topicInfo.issolved=="F")         
                           #if($auth.hasAuth("$!userId","$!topicInfo.userid","$!topicInfo.boardid")=="true")
						    <a href='/forum/manage/$encrypt.encrypt("$topicInfo.boardid")/move?chkTopicID=$topicInfo.topicid'>移动主题</a>&nbsp;&nbsp;
							<a href="javascript:doEdit('0');">修改</a>&nbsp;&nbsp;
							<a href="javascript:doManage('delete', '0');">删除</a>&nbsp;&nbsp;
							#end							
							<a href="javascript:doReply('0','$!topicInfo.user.nickname');">回复</a>&nbsp;&nbsp;
							
							<a href="javascript:doQuote('0','$!topicInfo.user.nickname','$!topicInfo.topicid','0');">引用</a>&nbsp;&nbsp;
							<a href='/forum/manage/$encrypt.encrypt("$topicInfo.boardid")/report?chkTopicID=$topicInfo.topicid'>举报</a>&nbsp;&nbsp;
							#else
							<span style="color:Red;"><img src="/style/images/folder_lock.gif" title="此帖已锁定" alt="此帖已锁定"/>此帖已锁定</span>
							#end
							<span title="顶部" class="scrolltop" onclick="scroll(0,0)">TOP</span>
                        </p>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
</div>
<div class="mainbox viewtopic">
#foreach($reply in $topicInfo.replyInfos)
<table id="rid$reply.replyid" cellspacing="0" cellpadding="0">
  <tbody>
  <tr>
     <td class="postauthor" rowspan="2">
                    <cite>
                     #if($!reply.ishidepost=="F")   <a href="/members/$!reply.userid" target="_blank">$!reply.user.nickname</a> #else 匿名回帖 #end
                    </cite>
                    <div class="avatar">
                     #if($!reply.ishidepost=="F")   #avatar("$!reply.user.avatar") #else #avatar("sample/unknown.gif")  #end 
                    </div>
                    <p>
                        <em>$!group.groupName("$!reply.user.groupid")</em>&nbsp;#rank("$!reply.user.groupid")
                    </p>
                    <dl class="profile">
                        <dt>
                            帖子&nbsp;
                        </dt>
                        <dd>
                            $!reply.user.posts&nbsp;
                        </dd>
                        <dt>
                            积分&nbsp;
                        </dt>
                        <dd>
                           $!reply.user.credits&nbsp;
                        </dd>
                    </dl>
                    <ul>
                    	#if($!reply.ishidepost=="F") 
                        <li class="friend">
                            <a href="/forum/members/addFriend?friendId=$!reply.user.userid" target="_blank">加为好友</a>
                        </li>
                        <li class="sms">
                            <a href="/forum/members/smsList/smscompose?userId=$!reply.user.userid" target="_blank">发短消息</a>
                        </li>
						#end
                    </ul>
                </td>
    <td class="postdetail">
      <div class="postinfo"><strong title="ID:$velocityCount">$velocityCount<sup>#</sup></strong>
	  发表于  $date.format("yyyy-MM-dd HH:mm:ss",$reply.createtime)&nbsp;
IP: $!reply.remoteip &nbsp;
	  </div>
      <div class="postcontent">

      <h2>$!reply.title</h2>
	  #if($!reply.isbest=="T")
       <p style="PADDING-BOTTOM: 15px; float: right">
	   <span class="notice">
	   	<img align="absmiddle" border="0" src="/resource/answer.gif">
		 &nbsp;最佳回复</span>
		 </p>
		 #end
      <div id="content_$VelocityCount" class="contentmsg">$!reply.content
	               #if($!reply.attachInfos.size()!=0)
							<div class="box attachlist"><br>
                            <p class="attach">附件</p>
                              #foreach($attach in $!reply.attachInfos)
							  #parse("/topic/attach.html")
							 #end
                         </div>
				   #end
	  </div>
  </div></td></tr>
  <tr>
    <td class="postfooter">
      <div class="postactions"><p>
      	 #if($topicInfo.issolved=="F")  
         #if($auth.hasAuth("$!userId","$!reply.userid","$!topicInfo.boardid")=="true")
	     <a href="javascript:void(0)" onclick="doEdit('$volicityCount',this);"  entrypt='$encrypt.encrypt("$!reply.replyid")'>修改</a>&nbsp;&nbsp;

 	     <a href="javascript:void(0)" onclick='doManage("delete", "$!reply.replyid",this);' entrypt='$encrypt.encrypt("$!reply.replyid")'>删除</a>&nbsp;&nbsp;
		 <a href='/forum/manage/$encrypt.encrypt("$topicInfo.boardid")/best?chkTopicID=$topicInfo.topicid&replyId=$!reply.replyid'>设为最佳回复</a>&nbsp;&nbsp;
		 #end

	     <a href="javascript:void(0)" onclick='doReply("$velocityCount","$!reply.user.nickname",this);' entrypt='$encrypt.encrypt("$!reply.replyid")'>回复</a>&nbsp;&nbsp;

	  	 <a href="javascript:void(0)" onclick="doQuote('$velocityCount','$!reply.user.nickname','$!topicInfo.topicid','$!reply.replyid');">引用</a>&nbsp;&nbsp;
		 <a href='/forum/manage/$encrypt.encrypt("$topicInfo.boardid")/report?chkTopicID=$topicInfo.topicid&replyId=$!reply.replyid'>举报</a>&nbsp;&nbsp;
         #end
	     <span title="顶部" class="scrolltop" onclick="scroll(0,0)">TOP</span> </p></div></td></tr>
		 
		 </tbody></table>
		 #end
		 </div>
   #if($pageCount==1)
    #else
    #parse("/board/_pager.html")
    #end
		 <script type="text/javascript">
	var pagesCount =$pageCount;
	var pageIndex=$pageIndex;
       </script>
#includeJs(["jquery.jqpagination.min","topic/topic"])
#includeCss(["jqpagination"])
<script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js?uid=1351552183653142" charset="utf-8"></script>
